//
//  AppDelegate.swift
//  ZSNRongHeMPK
//
//  Created by zhaosuning on 2022/2/11.
//

import UIKit
import AVKit

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.backgroundColor = UIColor.white
        let rtvc:UIViewController = ZSNFirstViewController()
        let naviga:UINavigationController = UINavigationController.init(rootViewController: rtvc)
        //naviga.navigationBar.isHidden = true
        window?.rootViewController = naviga
        window?.makeKeyAndVisible()
        
        
//        do {
//            try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
//        } catch {
//            print(error)
//        }
        
        return true
    }


}

